package com.chinasoft.service.serviceimpl;

import com.chinasoft.mapper.DayTrafficTrendAnalysisMapper;
import com.chinasoft.mapper.HourTrafficTrendAnalysisMapper;
import com.chinasoft.pojo.DayTrafficTrendAnalysis;
import com.chinasoft.pojo.HourTrafficTrendAnalysis;
import com.chinasoft.service.TrafficTrendDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficTrendDataServiceImpl implements TrafficTrendDataService {
    @Autowired
    private DayTrafficTrendAnalysisMapper dayTrafficTrendAnalysisMapper;
    @Autowired
    private HourTrafficTrendAnalysisMapper hourTrafficTrendAnalysisMapper;

    public List<DayTrafficTrendAnalysis> getAllDayTrafficTrendData() {
        return dayTrafficTrendAnalysisMapper.selectAll();
    }

    public List<HourTrafficTrendAnalysis> getAllHourTrafficTrendData() {
        return hourTrafficTrendAnalysisMapper.selectAll();
    }
}
